import request from '@/utils/request'

/**
 * 登录
 */
export const login = ({ email, password }) => {
  return request({
    method: 'POST',
    url: '/users/login',
    data: {
      user: { email, password }
    }
  })
}
